<?php
/**
 * 
 * @authors Liujinbi (857053791@QQ.com)
 * @date    2017-08-17 16:24:32
 * @version $Id$
 */
namespace app\admin\controller;

use think\Db;
use think\Request;
use Barcodegen\Barcode;
class Brcode {
    
    function index(){
        vendor('Barcodegen.Barcode');
        $Barcode = new Barcode();
        // $Barcode->draw('200903050242')->save('uploads/bracode/');
        $code = Request()->param('specval_id');
        $Barcode->draw(sprintf('%08s',$code))->show();exit;
    }
}